<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/2
 * Time: 11:48
 */

namespace app\api\controller;


use app\common\controller\Api;

class Mybank extends Api
{
    protected $noNeedLogin = ['addBank'];
    public function addBank()
    {
        $name = $this->request->post('name');
        $identity = $this->request->post('identity');
        $card_code = $this->request->post('card_code');
        $open_bank = $this->request->post('open_bank');
        $bank_name_site = $this->request->post('bank_name_site');
        $mobile = $this->request->post('mobile');
        \app\common\model\Mybank::create(['name'=>$name,'identity'=>$identity,'card_code'=>$card_code,'open_bank'=>$open_bank,'bank_name_site'=>$bank_name_site,'mobile'=>$mobile]);
        return $this->success('请求成功');
    }
}